﻿<UserControl x:Class="Export.Ui.Pages.Order.NewOrderDetail"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="400">
    <Grid Style="{StaticResource ContentRoot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="41*"/>

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="157*"/>
        </Grid.ColumnDefinitions>
        <TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" Text="OrderNo" VerticalAlignment="Top"  />
        <TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="1" TextWrapping="Wrap" Text="MaterialNo" VerticalAlignment="Top"  />
        <TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="2" TextWrapping="Wrap" Text="Product Name" VerticalAlignment="Top"  />
        <TextBlock HorizontalAlignment="Left" Margin="10,17,0,0" Grid.Row="3" TextWrapping="Wrap" Text="Qty" VerticalAlignment="Top" />
        <TextBox IsReadOnly="True" Grid.Column="1" Height="23" Margin="10,10,10,0" TextWrapping="Wrap" Text="{Binding OrderNo}" VerticalAlignment="Top"/>
        <TextBox Grid.Column="1" Height="23" Margin="10,10,10,0" Grid.Row="1" TextWrapping="Wrap" Text="{Binding MaterialNo}" VerticalAlignment="Top"/>
        <TextBox Grid.Column="1" Height="23" Margin="10,12,10,0" Grid.Row="2" TextWrapping="Wrap" Text="{Binding ProductName}" VerticalAlignment="Top"/>
        <TextBox Grid.Column="1" Height="23" Margin="10,10,8,0" Grid.Row="3" TextWrapping="Wrap" Text="{Binding Qty}" VerticalAlignment="Top"/>
        <Grid Grid.Column="1" HorizontalAlignment="Right"  Grid.Row="4" Margin="10,10,8,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <Button Command="{Binding AddCommand}" Content="Add" Grid.Column="1" HorizontalAlignment="Right"  VerticalAlignment="Top" Width="75" Height="26"/>
            <Button Command="{Binding CloseCommand}" Content="Cancel" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="75" Margin="0,0,8,0"/>
        </Grid>


    </Grid>
</UserControl>
